package com.fyzk.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fyzk.activity.lottery.recommend_order.MyRecommendOrderUserBean;
import com.fyzk.net.PublicMethod;
import com.tyjc.lottery.R;

import java.util.List;

/**
 * @author yangfeng
 * @create 2018/10/12 15:11
 * @Describe
 */
public class DocumentaryUserAdapter extends BaseQuickAdapter<MyRecommendOrderUserBean, BaseViewHolder> {
    public DocumentaryUserAdapter() {
        super(R.layout.item_documentary_user);
    }

    @Override
    protected void convert(BaseViewHolder helper, MyRecommendOrderUserBean item) {
        helper.setText(R.id.tv_documentary_user, item.getUserName());
        helper.setText(R.id.tv_mosaic_gold, PublicMethod.formatMoney(item.getFollowAmount() * 1.0));
        helper.setText(R.id.tv_bonus, PublicMethod.formatMoney(item.getWinAmount() * 1.0));
        helper.setText(R.id.tv_brokerage, PublicMethod.formatMoney(item.getShareBonusAmount() * 1.0));
    }
}
